<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<script src="js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>

	<body>
		<form >
			<input type="text" id="input01" name="user" value="" />
			<input type="submit" value="提交表单" id="input02" />
		</form>
	</body>
	<script type="text/javascript">
		cUser = false
		$("form").submit(function(){
			if (cUser) {
				return true
			} else{
				return false
			}
		})
	</script>

</html>